﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Small.SmortHtmlHelper.Validate
{
    public class AutoCompleteOptions
    {

        private string appendTo;

        public string AppendTo
        {
            get { return appendTo; }
            set { appendTo = value; }
        }

        private bool autoFocus;

        public bool AutoFocus
        {
            get { return autoFocus; }
            set { autoFocus = value; }
        }

        private int delay;

        public int Delay
        {
            get { return delay; }
            set { delay = value; }
        }

        private bool disabled;

        public bool Disabled
        {
            get { return disabled; }
            set { disabled = value; }
        }

        private int minLength;

        public int MinLength
        {
            get { return minLength; }
            set { minLength = value; }
        }

        private string position;

        public string Position
        {
            get { return position; }
            set { position = value; }
        }

        private string source;

        public string Source
        {
            get { return source; }
            set { source = value; }
        }

        private bool multipleSelect;


        public bool MultipleSelect
        {
            get { return multipleSelect; }
            set { multipleSelect = value; }
        }private string changeEvent;

        public string ChangeEvent
        {
            get { return changeEvent; }
            set { changeEvent = value; }
        }

        private string closeEvent;

        public string CloseEvent
        {
            get { return closeEvent; }
            set { closeEvent = value; }
        }

        private string createEvent;

        public string CreateEvent
        {
            get { return createEvent; }
            set { createEvent = value; }
        }

        private string focusEvent;

        /// <summary>
        /// funciton(){}
        /// </summary>
        public string FocusEvent
        {
            get { return focusEvent; }
            set { focusEvent = value; }
        }

        private string openEvent;

        public string OpenEvent
        {
            get { return openEvent; }
            set { openEvent = value; }
        }

        private string responseEvent;

        public string ResponseEvent
        {
            get { return responseEvent; }
            set { responseEvent = value; }
        }

        private string searchEvent;

        /// <summary>
        /// function(){}接受function(){}函数
        /// </summary>
        public string SearchEvent
        {
            get { return searchEvent; }
            set { searchEvent = value; }
        }

        private string selectEvent;
         
        
        /// <summary>
        ///接受 function( event, ui ) ui是返回的Json值,通过ui.item.Name获取到返回Json的值
        /// </summary>
        public string SelectEvent
        {
            get { return selectEvent; }
            set { selectEvent = value; }
        }

        private string displayStyle;

        /// <summary>
        /// Js函数 funciton displayStyle(item){}返回一个字符串,item[value,desc,icon,label属性调用]
        /// </summary>
        public string DisplayStyle
        {
            get { return displayStyle; }
            set { displayStyle = value; }
        }
        private string selectCallBack;

        
        
        /// <summary>
        /// 选择之后回调函数,仅在多选条件执行有效,function f_selected(event,ui);
        /// ui是返回的Json值,通过ui.item.Name获取到返回Json的值
        /// </summary>
        public string SelectedCallBack
        {
            get { return selectCallBack; }
            set { selectCallBack = value; }
        }
    }
}